package apis

import (
	"gitee.com/byx_darwin/ncloud-go/core"
	"gitee.com/byx_darwin/ncloud-go/core/net/consts"
)

type QueryCountryListGetRequest struct {
	core.NCloudRequest
}

func NewQueryCountryListGetRequest() *QueryCountryListGetRequest {
	return &QueryCountryListGetRequest{
		NCloudRequest: core.NCloudRequest{
			Path:   "/country",
			Method: consts.MethodGet,
		},
	}
}

type CountryInfo struct {
	Code   string `json:"code"`
	Name   string `json:"name"`
	NameEn string `json:"name_en"`
}

type QueryCountryListGetResponse struct {
	Code    int           `json:"code"`
	Msg     string        `json:"msg"`
	Data    []CountryInfo `json:"data"`
	TrackID string        `json:"track_id"`
}
